<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\Download;

class DownloadController extends Controller
{
    public function index()
    {
        return Download::query()->with('users')
            ->where('agent_id', 0)
            ->orderByDesc('created_at')->get();
    }
}
